package com.quanquan.user.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 功能描述:会员分组管理
 *
 * @ClassName: UserGroup
 * @Author: xiaoqianh丶
 * @Date: 2019-03-19 14:19
 * @Version: V1.0
 */
@Data
@Entity
@Table(name = "oo_user_group")
public class UserGroup implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;


    /**
     * 会员分组名称
     */
    @Column(name = "group_name", length = 32)
    private String groupName;


    /**
     * 分组介绍
     */
    @Column(name = "group_info", length = 512)
    private String groupInfo;

    /**
     * 创建时间
     */
    @Column(name = "create_time", nullable = false, length = 32)
    private String createTime;

    /**
     * 最新修改时间
     */
    @Column(name = "update_time", nullable = false, length = 32)
    private String updateTime;
    /**
     * 数据是否移除
     */
    @Column(name = "status_remove", columnDefinition = "TINYINT default 0",nullable = false)
    private Integer remove;
}
